home *** CD-ROM | disk | FTP | other *** search
- 10 POKE55,.:POKE56,160:CLR:PRINT"[147]"
- 15 B=29:N=-1:PRINT"ENTER INTEGER (0 TO 999)."
- 17 INPUTN:X$=MID$(STR$(N),2):PRINT:IFN=-1THENEND
- 20 PRINTX$;"! =";:IFN>33THEN30
- 22 IFN=.ORN=1THENPRINT1:PRINT:GOTO15
- 25 A=1:FORI=2TON:A=A*I:NEXT:PRINTA:PRINT:GOTO15
- 30 A=1:FORI=2TO29:A=A*I:NEXT:Y$=STR$(A):M=VAL(LEFT$(Y$,LEN(Y$)-4))
- 35 E=VAL(RIGHT$(Y$,3))
- 40 B=B+10:IFB>NTHEN55
- 45 C=1:FORI=B-9TOB:C=C*I:NEXT:X$=MID$(STR$(C),2)
- 50 M=M*VAL(LEFT$(X$,LEN(X$)-4)):E=E+VAL(RIGHT$(X$,3))
- 52 IFM=>10THENM=M/10:E=E+1:GOTO52
- 53 GOTO40
- 55 IFB=N+10THEN70
- 60 C=1:FORI=B-9TON:C=C*I:NEXT:X$=STR$(C)
- 61 IFASC(RIGHT$(X$,4))<>69THEN85
- 63 E=E+VAL(RIGHT$(X$,3))
- 65 M=M*VAL(LEFT$(X$,LEN(X$)-4))
- 70 IFM=>10THENM=M/10:E=E+1:GOTO70
- 75 X$=STR$(M)+"E+"+MID$(STR$(E),2)
- 80 PRINTX$:PRINT:GOTO15
- 85 M=M*VAL(X$):GOTO70
-